<?php
  
  class TyUtils{
      
      
      
     public static function getSmarty(){
          require_once(ROOT_PATH.'plugins/smarty/Smarty.class.php');
          
          $smarty = new Smarty();
          $smarty->cache_dir = ROOT_PATH.'templates/';
          
          return $smarty;
      }
  }
  
  if(!isset($tyUtils)){
      $tyUtils = new TyUtils();
  }
  
?>
